/*
 * Copyright (c) 2006-2020, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-08-24     RT-Thread    first version
 *  led多文件形式
 *  需要在工程属性->"C/C++常规"->"路径和符号"->"包含"添加led的路径
 */
//#include "stm32f1xx_hal_gpio.h"
#include <rtthread.h>
#include "led.h"
#define DBG_TAG "main"
#define DBG_LVL DBG_LOG
#include <rtdbg.h>
int main(void)
{
//    int count = 1;
    LOG_D("HelloSSS RT-Thread!");
    MX_GPIO_Init();
    while (1)
    {
        HAL_GPIO_WritePin(LED_GPIO_Port,LED_Pin,GPIO_PIN_SET);
//      LOG_D("HelloSSS RT-Thread!");
        rt_thread_mdelay(100);
        HAL_GPIO_WritePin(LED_GPIO_Port,LED_Pin,GPIO_PIN_RESET);
        rt_thread_mdelay(100);
    }

    return RT_EOK;
}
